package com.seashop.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.seashop.entity.MemberIncome;
import com.seashop.mapper.MemberIncomeMapper;
import com.seashop.service.IMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author moredln
 * @desc
 * @date 2020/12/2 10:28 上午
 */
@Service
public class MemberServiceImpl implements IMemberService {

    @Autowired
    private MemberIncomeMapper memberIncomeMapper;

    @Override
    public BigDecimal queryFreezeIncome(Integer userId, String countryCode) {
        MemberIncome memberIncome = memberIncomeMapper.selectOne(new QueryWrapper<MemberIncome>().eq("user_id", userId).eq("country_code", countryCode));
        return null;
    }

    @Override
    public BigDecimal queryHistoryIncome(Integer userId, String countryCode) {
        return null;
    }

    @Override
    public BigDecimal queryDailyFreezeIncome(Integer userId, String countryCode, LocalDate today) {
        return null;
    }

    @Override
    public BigDecimal queryMonthlyFreezeIncome(Integer userId, String countryCode, LocalDate today) {
        return null;
    }
}
